package com.tanhua.dubbo.api;


import com.tanhua.dubbo.mapper.TitleMapper;
import com.tanhua.model.domian.Title;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class TitleApilmpl implements  TitleApi {

    @Autowired
    private TitleMapper titleMapper;

    @Override
    public List<Title> queryTitle() {
        List<Title> titleList = titleMapper.queryTitle();
        return titleList;
    }
}
